<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>{$app_name}</title>
<link href="{$TemplateAdminDir}style.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body style=" background:#fff">
<!--{if $mm_show eq "permisson_list"} -->
<div>

</div>
<!--{/if} -->
<!--{if $mm_show eq "permisson_group"} -->
<div>
<h3><a href="permission.php?act=addgroup">添加组</a></h3>
<!--{if $group} -->
<table border="0" cellspacing="1" cellpadding="5" bgcolor="#CCCCCC">
  <tr bgcolor="#33CCCC">
		<th width="75" height="25" align="center" valign="middle">用户组</th>
		<th height="25" align="center" valign="middle">组成员</th>
		<th width="75" height="25" align="center" valign="middle">操作</th>
	</tr>
   <!--{foreach from=$group item=g} -->
    <tr bgcolor="#FFFFFF">
		<td width="75" height="25" align="center" valign="middle">{$g.g_name}</td>
		<td height="25" align="center" valign="middle">{$g.g_member}</td>
		<td align='center'>
        <a href="permission.php?act=modgroup&gid={$g.id}">修改</a>/
        <a href="permission.php?act=delgroup&gid={$g.id}">删除</a>
        </td>
	</tr>
    <!--{/foreach} -->   
</table>
<!--{/if} -->
</div>
<!--{/if} -->
<!--{if $mm_show eq "addgroup"} -->
<div>
<form name="form1" action="permission.php?act=addgroupu" method="post" onSubmit="glist()">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3">用户组名：
    <input id="gname" name="gname" type="text" value=""></td>
  </tr>
  <tr>
    <td>
      <select id="left" name="left" size="10" multiple style="width:100px;">
      <!--{foreach from=$einfo item=e} -->
        <option value="{$e.e_name}">{$e.e_name}</option>
      <!--{/foreach} -->
      </select>
    </td>
    <td width="124" align="center" valign="middle">
     <!--<span id="add_member" style="color:blue;"> 添加组员&gt;&gt; </span> <br /><br />
     <span id="del_member" style="color:blue;"> &lt;&lt;删除组员 </span> -->
     <a href="#" onClick="moveSelected(document.form1.left,document.form1.right)">添加组员&gt;&gt;</a> <br /><br />
     <a href="#" onClick="moveSelected(document.form1.right,document.form1.left)">&lt;&lt;删除组员</a>
    </td>
    <td>
      <select id="right" name="right" size="10" multiple style="width:100px;">
      
      </select>
    </td>
  </tr>
  <tr> 
    <td colspan="3" align="center">
      <input type="hidden" name="g_list" />
      <input type="submit" value="添加"  /><input type="reset" value="重置" />
    </td>
  </tr>
</table>


</form>
</div>
<!--{/if} -->
<!--{if $mm_show eq "modgroup"} -->
<div>
<form name="form1" action="permission.php?act=modgroupu" method="post" onSubmit="glist()">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3">用户组名：
    <input id="gname" name="gname" type="text" value="{$ginfo.g_name}"></td>
  </tr>
  <tr>
    <td>
      <select id="left" name="left" size="10" multiple style="width:100px;">
      <!--{foreach from=$einfo item=e} -->
        <option value="{$e.e_name}">{$e.e_name}</option>
      <!--{/foreach} -->
      </select>
    </td>
    <td width="124" align="center" valign="middle">
     <!--<span id="add_member" style="color:blue;"> 添加组员&gt;&gt; </span> <br /><br />
     <span id="del_member" style="color:blue;"> &lt;&lt;删除组员 </span> -->
     <a href="#" onClick="moveSelected(document.form1.left,document.form1.right)">添加组员&gt;&gt;</a> <br /><br />
     <a href="#" onClick="moveSelected(document.form1.right,document.form1.left)">&lt;&lt;删除组员</a>
    </td>
    <td>
      <select id="right" name="right" size="10" multiple style="width:100px;">
      <!--{section name=m loop=$gmember} -->
        <option value="{$gmember[m]}">{$gmember[m]}</option>
      <!--{/section} -->
      </select>
      
    </td>
  </tr>
  <tr> 
    <td colspan="3" align="center">
      <input type="hidden" name="g_list" />
      <!--<input type="hidden" act="modgroupu" /> -->
      <input type="hidden" name="gid" value="{$ginfo.id}" />
      <input type="submit" value="修改"  />
    </td>
  </tr>
</table>


</form>
</div>
<!--{/if} -->

<!--{if $mm_show eq "permisson_allocation"} -->
<div>
<table border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
	<tr bgcolor="#33CCCC">
		<th>功能</th>
		<th>开放组</th>
		<th>操作</th>
	</tr>
<!--{foreach from=$minfo item=m} -->
<tr bgcolor="#FFFFFF">
		<td>{$m.m_name}</td>
		<td>{$m.m_group}</td>
		<td><a href="permission.php?act=modallocation&mid={$m.id}">修改</a></td>
	</tr>
<!--{/foreach} -->
</table>
</div>
<!--{/if} -->

<!--{if $mm_show eq "modallocation"} -->
<div>
<form name="form1" action="permission.php?act=modallocationu" method="post" onSubmit="glist1()">
<table border="0" cellspacing="0" cellpadding="0">
  <td height="25" align="center" valign="middle" scope="col">拒绝访问组</td>
    <td height="25" align="center" valign="middle" scope="col">更改所在组 </td>
    <td height="25" align="center" valign="middle" scope="col">允许访问组</td>
  <tr>
    <td>
      <select id="left" name="left" size="10" multiple style="width:100px;">
      <!--{foreach from=$ginfo item=g} -->
        <option value="{$g.g_name}">{$g.g_name}</option>
      <!--{/foreach} -->
      </select>
    </td>
    <td width="124" align="center" valign="middle">
     <a href="#" onClick="moveSelected(document.form1.left,document.form1.right)">添加组&gt;&gt;</a> <br /><br />
     <a href="#" onClick="moveSelected(document.form1.right,document.form1.left)">&lt;&lt;删除组</a>
    </td>
    <td>
      <select id="right" name="right" size="10" multiple style="width:100px;">
      <!--{section name=m loop=$mgroup} -->
        <option value="{$mgroup[m]}">{$mgroup[m]}</option>
      <!--{/section} -->
      </select>
      
    </td>
  </tr>
  <tr> 
    <td colspan="3" align="center">
      <input type="hidden" name="g_list" />
      <!--<input type="hidden" act="modgroupu" /> -->
      <input type="hidden" name="mid" value="{$minfo.id}" />
      <input type="submit" value="修改"  />
    </td>
  </tr>
</table>


</form>
</div>
<!--{/if} -->
</body>
</html>